<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
	</body>
	<script type="text/javascript">
		var ajax = new XMLHttpRequest();
		ajax.open('post','http://127.0.0.1:3000');
		ajax.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
		ajax.send('name=aa&age=10');
		ajax.onreadystatechange = function (){
			if (ajax.readyState == 4 && ajax.status == 200) {
				
				var str=ajax.responseText;
				var obj=JSON.parse(str);
				console.log(obj);
			}
		}
	</script>
</html>
